package bc.swim2.ejb.session;

import java.util.List;

import javax.ejb.Remote;

import bc.swim2.ejb.entity.Friendship;
import bc.swim2.ejb.entity.RegisteredUser;

@Remote
public interface FriendshipManagerBeanRemote {

	boolean friendshipAlreadySent(RegisteredUser sender, RegisteredUser receiver);

	List<Friendship> getFriendshipList();

	void sendFriendshipRequest(RegisteredUser sender, RegisteredUser receiver, boolean ind);

	void approveFriendshipRequest(RegisteredUser sender, RegisteredUser receiver);

	void declineFriendshipRequest(RegisteredUser sender, RegisteredUser receiver);
	
	List<RegisteredUser> getFriendshipRequestList(RegisteredUser ru);
	
	List<RegisteredUser> getFriendList(RegisteredUser ru);
	
	String getFriendshipState(int userId1, int userId2);

	List<RegisteredUser> getFrndshpNotVisualized(RegisteredUser user);
	
	Friendship getFriendship(RegisteredUser sender, RegisteredUser receiver);

	void setVisualizedTrue(int id);
}
